package com.cqc.jdk8.Jlang;

import org.junit.Test;

import java.io.File;
import java.nio.file.FileSystems;

public class SystemTest {

    @Test
    public void f1() {
//        a=\
//        b=\
//        c=\
//        d=;
        String a = System.getProperty("file.separator");
        String b = File.separator;
        String c = FileSystems.getDefault().getSeparator();
        String d = File.pathSeparator;//On UNIX systems, this character is ':'; on Microsoft Windows systems it is ';'.
        System.out.println("a=" + a);
        System.out.println("b=" + b);
        System.out.println("c=" + c);
        System.out.println("d=" + d);
    }

}
